package cn.com.chengmandian.bike.mapper;

import cn.com.chengmandian.bike.dto.MemberCardDto;
import cn.com.chengmandian.bike.model.EbMemberCard;
import cn.com.chengmandian.bike.model.vo.MemberCardVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 电单车运营平台骑行卡记录 Mapper 接口
 * </p>
 *
 * @author AutoGenerator
 * @since 2021-12-15
 */
@Mapper
public interface EbMemberCardMapper extends BaseMapper<EbMemberCard> {

    IPage<MemberCardVo> selectCardList(Page page, @Param("dto") MemberCardDto memberCardDto, @Param("memberId") Integer memberId);

    MemberCardVo getMemberAvailable(@Param("areaId") Integer areaId, @Param("memberId") Integer memberId);

    void updateTimes(@Param("cardRecordId") Integer cardRecordId);

    MemberCardVo detail(@Param("id") Integer id);
}
